﻿/*
 * Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
 * See https://github.com/openiddict/openiddict-core for more information concerning
 * the license and the contributors participating to this project.
 */

using System;
using System.Threading.Tasks;

namespace OpenIddict.Server.IntegrationTests
{
    /// <summary>
    /// Represents a test host used by the server integration tests.
    /// </summary>
    public abstract class OpenIddictServerIntegrationTestServer : IAsyncDisposable
    {
        public abstract ValueTask<OpenIddictServerIntegrationTestClient> CreateClientAsync();

        public virtual ValueTask DisposeAsync() => default;
    }
}